package com.longmao.edustatistics.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author longmao
 * @date 2022/3/1 15:52
 * Content:   定时任务类
 */
@Component
public class CronScheduleTask {

    /**
     * 每天凌晨一点执行
     */
    @Scheduled(cron = "0 0 1 * * ? ")
    public void Task1() {
        System.out.println("*************task1*********");
    }
}
